package com.example.kekewaimaibao.goods.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: xuxiang
 * @date: 2022/3/12 20:54 星期六
 * @description:
 * @version: 1.0
 */
@Data
@TableName("keke_goods")
public class GoodsDO implements Serializable {
    private static final long serialVersionUID = -1L;

    @TableId("goods_id")
    private Long goodsId;
    @TableField("shop_id")
    private Long shopId;
    @TableField("name")
    private String name;
    @TableField("price")
    private Double price;
    @TableField("goods_image")
    private String goodsImage;
    @TableField("detail")
    private String detail;
    @TableField("sales")
    private Long sales;
    @TableField("status")
    private String status;
    @TableLogic
    private String delFlag;
    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @TableField("update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @TableField("remark")
    private String remark;
}
